- addChild
void addChild(Widget[] widgets)
Undocumented in source. Be warned that the author may not have intended to support it.
- addChild
void addChild(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
- findWidgetAt
Widget findWidgetAt(float[2] pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- findWidgetAt
Widget findWidgetAt(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- getLocalBounds
Bounds getLocalBounds()
Undocumented in source. Be warned that the author may not have intended to support it.
- getWorldBounds
Bounds getWorldBounds()
Undocumented in source. Be warned that the author may not have intended to support it.
- onDragEnd
void onDragEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
- onDragStart
void onDragStart(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- onDragged
void onDragged(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- onDropReceived
bool onDropReceived(Widget w)
Returns whether it accepted the receive
- onFocusEnter
void onFocusEnter()
Undocumented in source. Be warned that the author may not have intended to support it.
- onFocusExit
void onFocusExit()
Undocumented in source. Be warned that the author may not have intended to support it.
- onMouseClick
void onMouseClick()
Executed when both a mousedown and mouseup is executed when mouse is over this widget
- onMouseDown
void onMouseDown()
Executed when the mouse goes down inside the widget
- onMouseEnter
void onMouseEnter()
Executed the first time the mouse enters in the widget's boundaries
- onMouseExit
void onMouseExit()
Undocumented in source. Be warned that the author may not have intended to support it.
- onMouseMove
void onMouseMove()
Undocumented in source. Be warned that the author may not have intended to support it.
- onMouseUp
void onMouseUp()
If onMouseDown was executed, onMouseUp will be called even if the mouse is not inside the widget
- onRender
void onRender()
Undocumented in source.
- onScroll
void onScroll(float[3] currentScroll, float[3] lastScroll)
Undocumented in source. Be warned that the author may not have intended to support it.
- preRender
void preRender()
Undocumented in source. Be warned that the author may not have intended to support it.
- removeChild
void removeChild(Widget child)
Undocumented in source. Be warned that the author may not have intended to support it.
- render
void render()
Undocumented in source. Be warned that the author may not have intended to support it.
- setChildrenDirty
void setChildrenDirty()
Undocumented in source. Be warned that the author may not have intended to support it.
- setParent
void setParent(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
- setPosition
void setPosition(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
Whenever implementing layouts, only modify worldTransform. Never modify local transform from other places. Only world transform is valid.